<!-- The view to create a new group test or mofify the specifed group test -->
<script type="text/javascript">
</script>

<br />
<form id="add_chronic_disease_form" name="add_group_test_form">
<input type="hidden" id="chronic_disease_id" name="chronic_disease_id" value="{$chronic->get_chronic_disease_id()}">
<div class="form_container" style="width: 680px;">
    <div>
        <span id="status_message" style="font-style: italic; color: red;"></span>
    </div>
    <table cellspacing="0" cellpadding="0">
        <tr>
            <td colspan="4" class="field" style="text-transform: uppercase">{translate}Chronic disease detail{/translate}</td>
        </tr>
                
        <tr>
            <td class="label">{translate}Name{/translate}</td>
            <td colspan="3" class="field">
                <input id="name" name="name" type="text" size="65" 
                    value="{$chronic->getLocalizedText('name')}">
            </td>                                
        </tr>
    </table>
    
</div>

<div align="right" style="padding-top: 10px; width: 700px;">
    <div id="btn_save">
        <a id="button_save" class="button_link" href="javascript:SaveChronicDisease();">
            {if $chronic->get_chronic_disease_id() > 0}
                {translate}Save{/translate}                   
            {else}
                {translate}Add new{/translate}
            {/if}
        </a>
    </div>
    <div id="barLoading" style="display:none;">
        <img src="{$base_uri}images/ajax-loader.gif"/>
    </div>
</div>
</form>
